{% load i18n %}
{% if form.errors %}
<li><div class="error">{% trans "Please, fix the problems bellow." %}</div></li>
{% endif %}

{% for field in form.visible_fields %}
<li {% if field.errors %}class="has_error"{% endif %}>
    <div class="clearfix">
        {{field.label_tag}} {% if field.field.required%}*{% endif %}
    </div>
    
    {% if field.help_text %}
    <div class="small quiet">{{ field.help_text }}</div>
    {% endif %}
    
    {{field}}
    {{field.errors}}

</li>
{% endfor %}

<li class="hidden">
{% for field in form.invisible_fields %} {{field}} {% endfor %}
</li>
